package com.springcloud.alibaba.service.impl;

import com.springcloud.albaba.common.entity.Payment;
import com.springcloud.alibaba.dao.PaymentDao;

import com.springcloud.alibaba.service.PaymentSerice;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import javax.annotation.Resource;

/**
 * @Author:RenPu
 * @Date: 2020/6/28 16:27
 * @Version: 1.0
 * @description:
 */

@Service
@Transactional
public class PaymentServiceImpl implements PaymentSerice {

    @Resource
    private PaymentDao paymentDao;

    @Override
    public int create(Payment payment) {
        return paymentDao.create(payment);
    }

    @Override
    public Payment selectPaymentById(Long id) {
        return paymentDao.selectPaymentById(id);
    }
}
